using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DTO;

namespace DAO
{
    public class DangNhapDAO
    {
        public DataTable sp_DangNhap(DangnhapDTO DangNhap)
        {
            List<SqlParameter> listParam = new List<SqlParameter>();
            listParam.Add(new SqlParameter("@Ten", DangNhap.TenDangNhap));
            listParam.Add(new SqlParameter("@MatKhau", DangNhap.MatKhau));
            
            DataTable dt = new DataTable();
            dt = sqlDAO.ExecuteQuery("sp_DangNhap", listParam);
            return dt;
        }
    }
}
